//
//  SendCargoTVCell.m
//  Logistics
//
//  Created by enzhoukeji on 2018/8/7.
//  Copyright © 2018年 puyue.com. All rights reserved.
//

#import "SendCargoTVCell.h"

@implementation SendCargoTVCell

-(void)loadViews {
    self.titleImage = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"shangchuanweixiu"]];
    self.nameL = [UILabel labelWithSize:[UIFont systemFontOfSize:14] withColor:[UIColor grayColor] withText:@"我的老师"];
    self.nameL .backgroundColor = [UIColor orangeColor];
    self.textF = [UITextField new];
    self.textF.tintColor = [AppStyleConfiguration ColorWithTextOne];
    self.textF.textColor = [AppStyleConfiguration ColorWithTextOne];
    self.textF.font = [AppStyleConfiguration appFont:14];
    self.textF.layer.cornerRadius = 10;
    self.textF.layer.borderWidth = 1;
    self.textF.layer.borderColor = [UIColor lightGrayColor].CGColor;
    [self addSubview:self.titleImage];
    [self addSubview:self.nameL];
    [self addSubview:self.textF];

}
-(void)layoutViews {
    [self.titleImage  mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.mas_centerY);
        make.left.equalTo(@(GTFixWidthFlaot(15)));
        make.height.width.equalTo(@(GTFixWidthFlaot(20)));
    }];
    [self.nameL  mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.mas_centerY);
        make.left.equalTo(self.titleImage.mas_right).offset(GTFixWidthFlaot(10));
        make.height.equalTo(@(GTFixHeightFlaot(20)));
        make.width.equalTo(self.nameL);
    }];
}
@end
